package Demo;

import java.io.*;

public class countDemo {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("day24\\count.txt"));
        String s = br.readLine();
        br.close();
        int count = Integer.parseInt(s);
        count++;

        BufferedWriter bw = new BufferedWriter(new FileWriter("day24\\count.txt"));
        bw.write(count + "");
        bw.close();

        if (count <= 3) {
            System.out.println("第" + count + "次免费试用");
        } else {
            System.out.println("注册");
        }

    }
}
